#pragma once;

#include "mesh.hpp"
#include "rendererdx.hpp"

namespace dexgel
{


class MeshDx : public Mesh
{
	public:
		MeshDx(){ zeroVars(); }

		virtual bool setVertexData(SVertex *verts, int vertCount);
		virtual bool setVertexData(LitVertex *verts, int vertCount);
		
		virtual ~MeshDx(){ freeMem(); } 			 
		
	public:
		IDirect3DVertexBuffer9 *mVertexBuffer; // The D3D vertex buffer interface
		int mTriCount; // Number of triangles to draw
		int type_to_render; // Type of vertex attribs, XYZ, NORMAL, COLOR, UV, UVW, ...

		void freeMem(); // Free all memory in the CD3DMesh
		void zeroVars(); // Zeros out all data inside CD3DMesh

		
};

}
